import React, {Component} from 'react';
import {render} from 'react-dom';
import './main.css';//使用require导入css文件

class HelloWorld extends Component {
    render() {
        return (
            <div>
                hello world!
            </div>
        );
    }
}
render(
    <HelloWorld/>,
    document.getElementById('root')
);